package net.xumf.support.exception;

import lombok.Getter;
import lombok.Setter;
import net.xumf.support.enums.CodeEnum;


/**
 * 通用异常抽象类
 */
@Setter
@Getter
public abstract class AbstractCommonException extends RuntimeException implements CommonException {

    private Integer code;

    public AbstractCommonException(CodeEnum codeEnum) {
        super(codeEnum.getMsg());
        this.code = codeEnum.getCode();
    }


}
